package vip.buddha.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import vip.buddha.entity.Account;

@Component
@FeignClient(value = "shopping-account")
public interface AccountService {
    @RequestMapping("/account/list")
    String list();

    @PutMapping("/account/{userId}")
    Integer update(@PathVariable("userId") Integer userId, @RequestBody Account account);
}
